#!/bin/sh

if [ -f /var/run/denyhosts.pid ] ; then
  kill `cat /var/run/denyhosts.pid`
fi

umask 077

rm -f /var/run/denyhosts.pid

touch %OPTWARE_TARGET_PREFIX%/etc/hosts.allow
touch %OPTWARE_TARGET_PREFIX%/etc/hosts.deny

%OPTWARE_TARGET_PREFIX%/share/denyhosts/denyhosts.py --daemon  -c %OPTWARE_TARGET_PREFIX%/etc/denyhosts.cfg
